package com.md.common.dto.page;


import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述：spinach框架分页插件数据
 *
 * @author lujianping@oak168.com
 * @version 1.0
 * @date 2018/6/21 9:17
 * @since JDK 1.8
 */
public class ResponseQuery<T> implements Serializable {
    private static final long serialVersionUID = -9177122970132006454L;

    /**
     * 列表数据
     */
    private List<T> list = new ArrayList<T>();

    /**
     * 总条目数
     */
    private long total;

    /**
     * 总页数
     */
    private int totalPage;

    public ResponseQuery() {
    }

    public ResponseQuery(List<T> list, long total, int totalPage) {
        this.list = list;
        this.total = total;
        this.totalPage = totalPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}
